#include<stdio.h>

int main ()
{
     double a=0.0;
     scanf("%lf",&a);
    
    int b =a;

    double c =a-b;

    if(c>=0.5)
    {
        printf("%d",++b);
    }
    else
    printf("%d",b);


    return 0;
}